package com.vercon.commonmirror.view.music;

import android.content.Context;
import android.util.AttributeSet;

import androidx.appcompat.widget.AppCompatTextView;

import com.vercon.commonmirror.utils.MusicNameUtils;

/**
 * Created by gavin on 2017/8/4.
 */

public class MusicName extends AppCompatTextView {

    public final int WHAT = 100;
    String mCurPlayerPackageName;
    private static final String TAG = "MusicName";

    public MusicName(Context context) {
        this(context, null);
    }

    public MusicName(Context context, AttributeSet attrs, int defStyleAttr) {
        this(context, attrs);
    }

    public MusicName(Context context, AttributeSet attrs) {
        super(context, attrs);
//        MusicNameUtils.getInstance(context).onStart();
//        MusicNameUtils.getInstance(context).setOnMusicListener(new MusicNameUtils.OnMusicListener() {
//            @Override
//            public void onMusicCallBack(String songName, String userName) {
//                setText(String.format("歌名：%s   歌手：%s", songName, userName));
//            }
//        });
    }


}
